package com.wn.access;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

/**
 * @author yellow Docter
 * @date 2023 -03-01
 * @desc
 */
@EnableKnife4j
@EnableSwagger2WebMvc
@MapperScan("com.wn.access.mapper")
@SpringBootApplication
public class BankAccessApplication {

    public static void main(String[] args) {

        SpringApplication.run(BankAccessApplication.class,args);

    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
